<div class="vehicles form">
<?php $this->Html->script('prototype', array('inline' => false));
    echo $this->Form->create('Vehicle');?>
	<fieldset>
		<legend><?php __('Editar Vehículo'); ?></legend>
                
	<?php
		echo $this->Form->input('id');
                echo $this->Form->input('brands_id',array('label'=>'Marca','id'=>'brands','type'=>'select','options'=>$brands,'selected'=>$marcaid['0']['Brand']['id']));
		echo $this->Form->input('models_id',array('label'=>'Modelo','id'=>'models'));
		echo $this->Form->input('vehicles_types_id',array('label'=>'Tipo de Vehículo','id'=>'vehicles_type'));
		echo $this->Form->input('extranjero',array('label'=>'Dominio Extranjero','empty'=>array('0'=>'No','1'=>'Si'),'type'=>'select','selected'=>$vehiculo['extranjero']));
		echo $this->Form->input('dom_parcial',array('label'=>'Dominio Completo','empty'=>array('0'=>'No','1'=>'Si','2'=>'Ilegible','3'=>'No Posee'),'type'=>'select','selected'=>$vehiculo['dom_parcial']));
                echo $this->Form->input('dominio');
		echo $this->Form->input('motor_parc',array('label'=>'N° de Motor Completo','empty'=>array('0'=>'No','1'=>'Si','2'=>'Ilegible','3'=>'No Posee'),'type'=>'select','selected'=>$vehiculo['motor_parc']));
                ?><div>-</div>
                    <?php
                echo $this->Form->input('nro_motor');
                echo $this->Form->input('chasis_parc',array('label'=>'N° Chasis Completo','empty'=>array('0'=>'No','1'=>'Si','2'=>'Ilegible','3'=>'No Posee'),'type'=>'select','selected'=>$vehiculo['chasis_parc']));
                echo $this->Form->input('nro_chasis');
		//echo $this->Form->input('rodamiento',array('label'=>'Rodamiento','empty'=>array('0'=>'No Apto','1'=>'Apto'),'type'=>'select','selected'=>$vehiculo['rodamiento']));
	        echo $this->Form->input('observaciones');
		
		
		
                
	?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));
      $options = array('url' => 'update_select_edit','update' => 'models');
      echo $ajax->observeField('brands',$options);
?>
</div>
<div class="actions">
	<h3><?php __('Acciones'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Borrar', true), array('action' => 'delete', $this->Form->value('Vehicle.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Vehicle.id'))); ?></li>
		<li><?php echo $this->Html->link(__('Listar Vehiculos', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('Listar Modelos', true), array('controller' => 'models', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Modelo', true), array('controller' => 'models', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Tipos de Vehiculos', true), array('controller' => 'vehicles_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Tipo de Vahiculo', true), array('controller' => 'vehicles_types', 'action' => 'add')); ?> </li>
	</ul>
</div>